Tag Archives: view

6,387 views

How to make a horizontal line in Android application example code

In html is horizontal line a tag br. In Android source code you can use a View as xml example bellow. <View android:layout_width="fill_parent" android:layout_height="4dip" android:background="#ffffff" android:paddingBottom="10dip" />

Posted in Android Examples Code | Tagged , | Comments Off on How to make a horizontal line in Android application example code
26,375 views

How set focus on View Android development example

Set focus on a View in Android application example source code for Button, EditText, View, TextView, isFocused(), requestFocus() . // set focus on Button Android example private Button mRightButton; mRightButton = (Button) a.findViewById(R.id.rightButton); mRightButton.requestFocus(); // boolean isFocused() boolean b = … Continue reading

Posted in Android Examples Code | Tagged , , | Comments Off on How set focus on View Android development example