@@ -0,0 +1,2334 @@
+/*%0A * Copyright (C) 2015 Pedro Vicente Gomez Sanchez.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage com.github.pedrovgs.lynx;%0A%0Aimport android.content.Context;%0Aimport android.util.AttributeSet;%0Aimport android.view.LayoutInflater;%0Aimport android.widget.AbsListView;%0Aimport android.widget.ListView;%0Aimport android.widget.RelativeLayout;%0A%0A/**%0A * Main library view. This ViewGroup extension shows all the information%0A *%0A * @author Pedro Vicente G%C3%B3mez S%C3%A1nchez.%0A */%0Apublic class LynxView extends RelativeLayout %7B%0A%0A  private ListView lv_traces;%0A%0A  public LynxView(Context context) %7B%0A    super(context);%0A    initializeLynxView(null);%0A  %7D%0A%0A  public LynxView(Context context, AttributeSet attrs) %7B%0A    super(context, attrs);%0A    initializeLynxView(attrs);%0A  %7D%0A%0A  public LynxView(Context context, AttributeSet attrs, int defStyleAttr) %7B%0A    super(context, attrs, defStyleAttr);%0A    initializeLynxView(attrs);%0A  %7D%0A%0A  private void initializeLynxView(AttributeSet attrs) %7B%0A    if (attrs == null) %7B%0A      initializeConfiguration(attrs);%0A    %7D%0A    inflateView();%0A  %7D%0A%0A  private void initializeConfiguration(AttributeSet attrs) %7B%0A    //Obtain configuration%0A  %7D%0A%0A  private void inflateView() %7B%0A    Context context = getContext();%0A    LayoutInflater layoutInflater = LayoutInflater.from(context);%0A    layoutInflater.inflate(R.layout.lynx_view, this);%0A    mapGui();%0A    hookListeners();%0A  %7D%0A%0A  private void mapGui() %7B%0A    lv_traces = (ListView) findViewById(R.id.lv_traces);%0A  %7D%0A%0A  private void hookListeners() %7B%0A    lv_traces.setOnScrollListener(new AbsListView.OnScrollListener() %7B%0A      @Override public void onScrollStateChanged(AbsListView view, int scrollState) %7B%0A%0A      %7D%0A%0A      @Override public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount,%0A          int totalItemCount) %7B%0A%0A      %7D%0A    %7D);%0A  %7D%0A%7D%0A

Add LinxView and start working with the first approximation to the library user interface