Note that there are some explanatory texts on larger screens.

plurals
  1. POChange the Background of a Full Activity?
    text
    copied!<p>I have this Activity and a XML for Constructing a listview... From the listview i can only design a single row but now i want to change the color of full background means the color of the full Activity ....</p> <pre><code>public class MyActivity extends Activity implements AdapterView.OnItemClickListener, View.OnClickListener { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ListView list = new ListView(this); setContentView(list); String[] items = { "Tom", "Sally", "Bill", "John", "Santiago", "Isabella" }; ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(this, R.layout.review, R.id.textView1, items) { @Override public View getView(int position, View convertView, ViewGroup parent) { View row = super.getView(position, convertView, parent); View text = row.findViewById(R.id.seemore); text.setTag(position); text.setOnClickListener(MyActivity.this); View left = row.findViewById(R.id.imageView1); left.setBackgroundResource(R.drawable.newapture); left.setTag(position); left.setOnClickListener(MyActivity.this); return row; } }; </code></pre> <p>and the XML CODE IS :</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:background="#272727"&gt; &lt;ImageView android:id="@+id/one" android:layout_width="140dp" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_below="@+id/title" android:layout_marginLeft="15dp" android:layout_marginTop="14dp" android:clickable="true" /&gt; &lt;/RelativeLayout&gt; </code></pre> <p>Here #272727 changes the color of Single row...I want to change the background .</p> <p>Any Help Please ...</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload