Question: I have some excel in which the column names are numbers are dynamic, How can I design a table structure to save it in sql server table.

Since its dynamic I can't keep a specific table structure.Please suggest a solution.

Answer: 
Just create a separate layout.xml file for action bar and include it as a custom action bar in main.xml and set the main activity's theme to noTitle bar.
 **Here is my custome\_app\_bar.xml**

```
<LinearLayout
android:orientation="vertical"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="@color/colorPrimary"
app:theme="@style/AppTheme"
android:padding="5dp"
>
    <ImageView
        android:id="@+id/acton_bar_imageView"
        android:background="@drawable/app_logo"
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:layout_gravity="center_horizontal"/>

```

and including in the main.xml is like that .... 

```
    <include
    android:id="@+id/app_bar"
    layout="@layout/custome_app_bar"
    />

```
try this 

```
ActionBar actionBar = getActionBar();
actionBar.setDisplayOptions(actionBar.getDisplayOptions()
        | ActionBar.DISPLAY_SHOW_CUSTOM);
ImageView imageView = new ImageView(actionBar.getThemedContext());
imageView.setScaleType(ImageView.ScaleType.CENTER);
imageView.setImageResource(R.drawable.adnace_search_i);
ActionBar.LayoutParams layoutParams = new ActionBar.LayoutParams(
        ActionBar.LayoutParams.WRAP_CONTENT,
        ActionBar.LayoutParams.WRAP_CONTENT, Gravity.RIGHT
                | Gravity.CENTER_VERTICAL);
layoutParams.rightMargin = 40;
imageView.setLayoutParams(layoutParams);
actionBar.setCustomView(imageView);

```