Battery Level Indicator while charging
You always have to take the internal resistance of the battery into account. If a current flows, there's always a voltage drop across this internal resistance. So if you want a reliable measurement you have to be sure that no current flows out of or into the battery.

If you want to determine the state of charge (SOC) by a voltage measurement, you have to know that the unloaded voltage isn't linearly proportional to the SOC and different for every chemistry. You should be able to get graphs from the battery manufacturer or find some on google.

Another possibility: Measure the voltage at the beginning of your charging process and determine the SOC. Then, measure the current flowing into the battery and calculate the total amount of charged Ah or mAh to determine the SOC while charging without the need to interrupt the current flow.