I develop an app like below,In the mainActivity,when I try to add an image the TAB1,the picuture can’t fill full of the tab,it has a border lost.

The yellow part is the TAB1,I need yellow color fill with the TAB1.any help will be appreciated :),thanks
EDIT:
I update my key code
public class MainActivity extends TabActivity implements OnTabChangeListener{
private TabSpec ts1,ts2,ts3;//declare three page
private TabHost tableHost;
@override
public void onCreate(Bundle savedInstanceState){
super.onCreat(savedInstanceState);
tableHost=this.getTabHost();
LayoutInflater.from(this).inflate(R.layou.activity_main,tableHost.getTabContentView());
ts1=tableHost.newTabSpec("Tabone");
ts1.setIndicator("TAB1",getResources().getDrawable(R.drawable.read2));
ts1.setContent(R.id.btn);
ts2=tableHost.newTabSpec("Tabtwo");
ts2.setIndicator("TAB2");
ts2.setContent(R.id.et);
ts3=tableHost.newTabSpec("Tabthree");
ts3.setIndicator("TAB3");
ts3.setContent(R.id.mylayout);
tableHost.addTab(ts1);
tableHost.addTab(ts2);
tableHost.addTab(ts3);
tableHost.setOntabChangedListener(this);
}
}
Did you try Your app on emulator or on a real device? If you had set “match_parent” to your Layout, it should work. But I got a similar problem with my Samsung Galaxy S3, it could be that is a hardware error, not your fail.
EDIT
Ok, so if You just use Java-Code without xml definition, maybe you should set the layout-params for the tabhost. I don´t realy know, just an assumption.
But there are many LayoutParams, don´t know if LinearLayout.LayoutParams are the right one for you. If it doesn´t work, you have to try some other LayoutParams.