Java Code Examples for android.widget.LinearLayout#setSelected()

The following examples show how to use android.widget.LinearLayout#setSelected() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PlaceDetailActivity.java    From Expert-Android-Programming with MIT License 6 votes vote down vote up
private void initTiming() {
    dayMonday = (LinearLayout) findViewById(R.id.dayMonday);
    dayTuesday = (LinearLayout) findViewById(R.id.dayTuesday);
    dayWednesday = (LinearLayout) findViewById(R.id.dayWednesday);
    dayThursday = (LinearLayout) findViewById(R.id.dayThursday);
    dayFriday = (LinearLayout) findViewById(R.id.dayFriday);
    daySaturday = (LinearLayout) findViewById(R.id.daySaturday);
    daySunday = (LinearLayout) findViewById(R.id.daySunday);

    timingMonday = (TextView) findViewById(R.id.timingMonday);
    timingTuesday = (TextView) findViewById(R.id.timingTuesday);
    timingWednesday = (TextView) findViewById(R.id.timingWednesday);
    timingThursday = (TextView) findViewById(R.id.timingThursday);
    timingFriday = (TextView) findViewById(R.id.timingFriday);
    timingSaturday = (TextView) findViewById(R.id.timingSaturday);
    timingSunday = (TextView) findViewById(R.id.timingSunday);

    dayMonday.setSelected(false);
    dayTuesday.setSelected(false);
    dayWednesday.setSelected(false);
    dayThursday.setSelected(false);
    dayFriday.setSelected(false);
    daySaturday.setSelected(false);
    daySunday.setSelected(false);
}
 
Example 2
Source File: MainActivity.java    From PocketEOS-Android with GNU Lesser General Public License v3.0 5 votes vote down vote up
private void tabSelected(LinearLayout linearLayout) {
    mLlHome.setSelected(false);
    mLlFriendsList.setSelected(false);
    mLlNews.setSelected(false);
    mLlApplication.setSelected(false);
    linearLayout.setSelected(true);
}
 
Example 3
Source File: MainFragment.java    From ImmersionBar with Apache License 2.0 5 votes vote down vote up
private void tabSelected(LinearLayout linearLayout) {
    llHome.setSelected(false);
    llCategory.setSelected(false);
    llService.setSelected(false);
    llMine.setSelected(false);
    linearLayout.setSelected(true);
}
 
Example 4
Source File: FragmentFourActivity.java    From ImmersionBar with Apache License 2.0 5 votes vote down vote up
private void tabSelected(LinearLayout linearLayout) {
    llHome.setSelected(false);
    llCategory.setSelected(false);
    llService.setSelected(false);
    llMine.setSelected(false);
    linearLayout.setSelected(true);
}
 
Example 5
Source File: FragmentThreeActivity.java    From ImmersionBar with Apache License 2.0 5 votes vote down vote up
private void tabSelected(LinearLayout linearLayout) {
    llHome.setSelected(false);
    llCategory.setSelected(false);
    llService.setSelected(false);
    llMine.setSelected(false);
    linearLayout.setSelected(true);
}
 
Example 6
Source File: FragmentOneActivity.java    From ImmersionBar with Apache License 2.0 5 votes vote down vote up
private void tabSelected(LinearLayout linearLayout) {
    llHome.setSelected(false);
    llCategory.setSelected(false);
    llService.setSelected(false);
    llMine.setSelected(false);
    linearLayout.setSelected(true);
}
 
Example 7
Source File: FragmentTwoActivity.java    From ImmersionBar with Apache License 2.0 5 votes vote down vote up
private void tabSelected(LinearLayout linearLayout) {
    llHome.setSelected(false);
    llCategory.setSelected(false);
    llService.setSelected(false);
    llMine.setSelected(false);
    linearLayout.setSelected(true);
}
 
Example 8
Source File: BlackBoxMainActivity.java    From PocketEOS-Android with GNU Lesser General Public License v3.0 4 votes vote down vote up
private void tabSelected(LinearLayout linearLayout) {
    mLlHome.setSelected(false);
    mLlNews.setSelected(false);
    mLlApplication.setSelected(false);
    linearLayout.setSelected(true);
}