Thursday, April 24, 2014

Set SlidingDraw components and icon buttons ImageButton problem



Were said to be the problem 1.This SlidingDrawer layout or its LinearLayout parent is possibly useless
2. [Accessibility] Missing contentDescription attribute on image
3.No orientation specified, and the default is horizontal. This is a common source of bugs when
children are added dynamically.
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Id = content of LinearLayout to add android: orientation = "vertical"
Reply:
About drawer controls can read my blog http://blog.csdn.net/aimncy/article/details/21244125
Reply:
cited a floor hjywyj reply:
id = content of LinearLayout to add android: orientation = "vertical"

Resolved

xmlns: tools = "http://schemas.android.com/tools"
android: id = "@ + id/LinearLayout1"
android: layout_width = "match_parent"
android: layout_height = "match_parent"
android: orientation = "vertical">
android: handle = "@ + id / handle"
android: content = "@ + id / content"
android: layout_width = "fill_parent"
android: layout_height = "fill_parent"
android: orientation = "vertical"
android: id = "@ + id / slidingdrawer"
>
android: id = "@ id / handle"
android: layout_width = "50dip"
android: layout_height = "44dip"
android: src = "@ drawable / up"
/>
android: id = "@ id / content"
android: layout_width = "fill_parent"
android: layout_height = "fill_parent"
android: background = "# 66cccc"
android: focusable = "true"
android: orientation = "vertical">



No comments:

Post a Comment